package com.ckf.login_wx;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.context.annotation.Bean;

import com.ckf.login_wx.servic.XinsellService;

@MapperScan("com.ckf.login_wx.mapper") //扫描mapper接口，否则无法运行
@SpringBootApplication
public class LoginWxApplication {
    public static void main(String[] args) {
        SpringApplication.run(LoginWxApplication.class, args);
    }
    @Bean
         public EmbeddedServletContainerCustomizer containerCustomizer(){
             return container -> {
                 container.setSessionTimeout(14400);/*单位为S*/
             };
         }
}
